let state ={
   sub_class_obj:{
       class_id:'',
       status:'',
       selectedId:0
   },
    selectedId:0,
    Navsenior:[],
    selectName:0,
}

let mutations ={
    changeSubNav:function (state,payload) {
        console.log(state)
        console.log(payload)
        state.sub_class_obj =payload;

    },
    addNavsenior:function (state,payload) {
        console.log(payload);
        state.Navsenior =payload;
    },
    saveSelectedId:function (state,payload) {
        console.log(state)
        state.selectedId =payload;
    },
    changeIndex(state,payload){
        state.selectName=payload;
    }
}
let Setter ={
    // sub_class_obj:state =>state.sub_class_obj
}
let getters={
    // sub_class_obj:state =>state.sub_class_obj
}
let actions={
    // changeSubNav:function (context) {
    //     context.commit('changeSubNav')
    //     // console.log(state)
    //     // console.log(payload)
    //     // state.sub_class_obj =payload;
    // },
}
export default {
    state,
    mutations,
    Setter,
    getters,
    actions
};